package com.my.study.io.print;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

/**
 * @author Carlos
 * @version 1.0
 * @Description 字符打印流
 * @date 2021/6/27 12:44
 **/
public class PrintWriterTest {

    public static void main(String[] args) throws IOException {

        PrintWriter printWriter = new PrintWriter(new FileWriter("D:/file/system1.txt"));

        printWriter.write("技术监督局和");
        printWriter.print("Hi,易都军");
        printWriter.close();
    }

}
